package com.edu.common.utils;

/**
 * http 相应状态码
 * SUCCESS: 响应成功状态码
 * FAIL: 响应失败状态码
 */

public class ResultCode {
    public static final int SUCCESS = 1;
    public static final int FAIL = 0;
    public static final String DEFAULT_SUCCESS_MESSAGE = "操作成功";
    public static final String DEFAULT_FAIL_MESSAGE = "操作失败";

    private int code = SUCCESS;
    private String message;

    public ResultCode() {
    }

    public ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
